在開始之前,需要先知道幾種比較常用的Http Method
GET:用來向特定來源請求資料
譬如像資料庫拿取使用者帳號資料
POST:新增資料
在資料庫新增一筆資料,不管資料是否已經存在
PUT: 如果資料已經存在就替換,沒有就新增
PATCH:更新部份資料
DELETE:刪除資料
@RestController
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class})
public class SpringBootTutorialApplication {
	public static void main(String[] args) {
		SpringApplication.run(SpringBootTutorialApplication.class, args);
	}
	@GetMapping
	public String Hello() {
		return "Hello World";
	}
}
這是一個簡單的Hello World 的 Get請求,我們像Server請求了一個字串Hello,他會回給我們一個"Hello World"